﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace hlighttohtml
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = args[0].ToString();
            string inputextension = Global.fe.GetExtension(args[0].ToString());            
            Global.Plgns.FindPlugins();            
            PluginInterface.IPlugin p = (PluginInterface.IPlugin)Global.Plgns.plugins[inputextension];
            Global.th.SetLang(inputextension);
            Global.th.Parse(input, Environment.CurrentDirectory + "\\" + "out.html");
            //Console.ReadLine();
        }
    }
}
